package googleAPI;

import java.util.ArrayList;

public class RouteData
{
	private String distance;
	private String duration;
	
	private String status;
	
	private String startLocationLatitude;
	private String startLocationLongitude;
	
	private String endLocationLatitude;
	private String endLocationLongitude;
	
	private String endAdress;
	private String startAdress;
	
	private String summary;
	private String[] warnings;
	private String[] waypointOrder;
	
	private ArrayList<Point> points;

	public String getDistance()
	{
		return distance;
	}

	public void setDistance(String string)
	{
		this.distance = string;
	}

	public String getDuration()
	{
		return duration;
	}

	public void setDuration(String string)
	{
		this.duration = string;
	}

	public String getStatus()
	{
		return status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public String getStartLocationLatitude()
	{
		return startLocationLatitude;
	}

	public void setStartLocationLatitude(String startLocationLatitude)
	{
		this.startLocationLatitude = startLocationLatitude;
	}

	public String getStartLocationLongitude()
	{
		return startLocationLongitude;
	}

	public void setStartLocationLongitude(String startLocationLongitude)
	{
		this.startLocationLongitude = startLocationLongitude;
	}

	public String getEndLocationLatitude()
	{
		return endLocationLatitude;
	}

	public void setEndLocationLatitude(String endLocationLatitude)
	{
		this.endLocationLatitude = endLocationLatitude;
	}

	public String getEndLocationLongitude()
	{
		return endLocationLongitude;
	}

	public void setEndLocationLongitude(String endLocationLongitude)
	{
		this.endLocationLongitude = endLocationLongitude;
	}

	public String getEndAdress()
	{
		return endAdress;
	}

	public void setEndAdress(String endAdress)
	{
		this.endAdress = endAdress;
	}

	public String getStartAdress()
	{
		return startAdress;
	}

	public void setStartAdress(String startAdress)
	{
		this.startAdress = startAdress;
	}

	public String getSummary()
	{
		return summary;
	}

	public void setSummary(String summary)
	{
		this.summary = summary;
	}

	public String[] getWarnings()
	{
		return warnings;
	}

	public void setWarnings(String[] warnings)
	{
		this.warnings = warnings;
	}

	public String[] getWaypointOrder()
	{
		return waypointOrder;
	}

	public void setWaypointOrder(String[] waypointOrder)
	{
		this.waypointOrder = waypointOrder;
	}

	public ArrayList<Point> getPoints()
	{
		return points;
	}

	public void setPoints(ArrayList<Point> points)
	{
		this.points = points;
	}
	
	public void addPoint(Point point){
		points.add(point);
	}
	
	public String toString(){
		String string = "distance" +distance
		+"\nduration               "+duration               
		+"\nstatus                 "+status                 
		+"\nstartLocationLatitude  "+startLocationLatitude  
		+"\nstartLocationLongitude "+startLocationLongitude 
		+"\nendLocationLatitude    "+endLocationLatitude    
		+"\nendLocationLongitude   "+endLocationLongitude   
		+"\nendAdress              "+endAdress              
		+"\nstartAdress            "+startAdress            
		+"\nsummary                "+summary                
		+"\nwarnings               "+warnings               
		+"\nwaypointOrder          "+waypointOrder   ;       
		return string;
		}
	
}
